<%@taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
<title>Celebrity List Page</title>
</head>
<body>
<div>
	<span>Celebrity List</span><span><a href="CelebrityCrudAction.html?action=edit">Add a celebrity</a></span>
</div>
<div align="center">
<table class="hovertable">
	<tr>
		<th>Id</th>
		<th>First Name</th>
		<th>Middle Name</th>
		<th>Last Name</th>
		<th>Alias</th>
		<th>Gender</th>
		<th>Date Of Birth</th>
		<th>Alive</th>
		<th></th>
	</tr>
<s:iterator value="celebrities">
	<tr>
		<td><s:property value="id"/></td>
		<td><s:property value="firstName"/></td>
		<td><s:property value="middleName"/></td>
		<td><s:property value="lastName"/></td>
		<td><s:property value="alias"/></td>
		<td><s:property value="gender"/></td>
		<td><s:date name="dob" format="yyyy-MM-dd" /></td>
		<td><s:property value="isAlive"/></td>
		<td><a href="CelebrityCrudAction.html?action=edit&id=<s:property value='id'/>"><img src="images/edit.png"/></a></td>
	</tr>
</s:iterator>
</table>
</div>
</body>
</html>